
class DictObject:
    def __init__(self):
        self.data = {}

    def __getitem__(self, key):
        return self.data[key]

    def __setitem__(self, key, value):
        self.data[key] = value

obj = DictObject()
for i in range(10):
    obj[f"k{i}"] = f"v{i}"

print(obj["k1"])
print(obj["k2"])
print(obj["k3"])
print(obj["k4"])

